//
//  DDCartTableCell.h
//  Dingdong
//
//  Created by 程强 on 16/11/15.
//  Copyright © 2016年 程强. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^CartSelectedHandle)();
typedef void(^CartNumHandle)(NSString *num, NSString *lastNum);

@interface DDCartTableCell : UITableViewCell<UITextFieldDelegate>
@property (weak, nonatomic) IBOutlet UIButton *cartSelectBtn;
@property (weak, nonatomic) IBOutlet UIView *iconBgView;
@property (weak, nonatomic) IBOutlet UIImageView *goodsIcon;
@property (weak, nonatomic) IBOutlet UILabel *goodsNameLbl;
@property (weak, nonatomic) IBOutlet UILabel *goodsSizeLbl;
@property (weak, nonatomic) IBOutlet UILabel *goodsPriceLbl;
@property (weak, nonatomic) IBOutlet UIView *countBarBgView;
@property (weak, nonatomic) IBOutlet UITextField *countTxf;
@property (strong, nonatomic) CartSelectedHandle handler;
@property (strong, nonatomic) CartNumHandle numHandler;
- (void)userCartSelect:(CartSelectedHandle)handle;
- (void)userModifyNumber:(CartNumHandle)handle;
@end
